package com.army.stock.service;

import com.army.stock.domain.ArmyRole;
import com.javalife.common.domain.page.PaginatedArrayList;

import java.util.List;
import java.util.Map;

/**
 * Created by zhangyong on 15/3/3.
 */
public interface ArmyRoleService {

    public PaginatedArrayList getArmyRolePageInfo(int currentPage, int pageSize, Map<String, Object> map);

    public void addArmyRole(ArmyRole armyRole);

    public ArmyRole getArmyRoleById(Long id);

    public void updateArmyRole(ArmyRole armyRole);

    public List<Map> getAllPermitsByRoleId(Long roleId);

    public void updateRolePermits(String roleId, String permits);

    public String getPermitsByUserId(Long userId);

    public List getAllArmyRoleByUserId(String userId);

    public void updateUserRole(String userId ,String roleIds);

}
